﻿using ScottPlot.Drawing.Colormaps;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using 低频天线阵列相控阵信号发生系统SmartFASK12.Enums;

namespace 低频天线阵列相控阵信号发生系统SmartFASK12.Models
{
    public class ConfigModel
    {
        #region 采集卡参数

        /// <summary>
        /// 物理通道（采集）
        /// </summary>
        public string physicalChannelName { get; set; }

        /// <summary>
        /// 物理通道2（输出）
        /// </summary>
        public string physicalChannelName2 { get; set; }

        /// <summary>
        /// 物理通道3（输出）
        /// </summary>
        public string physicalChannelName3 { get; set; }

        /// <summary>
        /// 最小值
        /// </summary>
        public double minimumValue { get; set; }

        /// <summary>
        /// 最大值
        /// </summary>
        public double maximumValue { get; set; }

        /// <summary>
        /// 采样率
        /// </summary>
        public int rate { get; set; }

        /// <summary>
        /// 信号数量
        /// </summary>
        public int numbersignals { get; set; }

        /// <summary>
        /// 超时时间
        /// </summary>
        public int timeout { get; set; }

        /// <summary>
        /// 采集卡类型
        /// </summary>
        public CollectionCardTypeEnum cjktype { get; set; }

        #endregion

        #region 通信距离测试

        /// <summary>
        /// 频点
        /// </summary>
        public double frequencyPoint { get; set; }

        /// <summary>
        /// 采集时长
        /// </summary>
        public double collectionDuration { get; set; }

        /// <summary>
        /// 平均次数
        /// </summary>
        public int averageNumber { get; set; }

        #endregion

        #region 磁场测试

        /// <summary>
        /// 距离
        /// </summary>
        public double distance { get; set; }

        /// <summary>
        /// 频点
        /// </summary>
        public double frequencyPoint2 { get; set; }

        /// <summary>
        /// 采集时长
        /// </summary>
        public double collectionDuration2 { get; set; }

        /// <summary>
        /// 平均次数
        /// </summary>
        public int averageNumber2 { get; set; }

        /// <summary>
        /// 灵敏度系数
        /// </summary>
        public double sensitivityCoefficient { get; set; }

        #endregion

        #region 频带测试

        /// <summary>
        /// 频率
        /// </summary>
        public double frequency { get; set; }

        /// <summary>
        /// 频点
        /// </summary>
        public double frequencyPoint3 { get; set; }

        /// <summary>
        /// 采集时长
        /// </summary>
        public double collectionDuration3 { get; set; }

        /// <summary>
        /// 平均次数
        /// </summary>
        public int averageNumber3 { get; set; }

        /// <summary>
        /// 灵敏度系数2
        /// </summary>
        public double sensitivityCoefficient2 { get; set; }

        /// <summary>
        /// 自动测试最大值
        /// </summary>
        public double automaticTestMax { get; set; }

        /// <summary>
        /// 自动测试最小值
        /// </summary>
        public double automaticTestMin { get; set; }

        /// <summary>
        /// 间隔
        /// </summary>
        public double interval { get; set; }

        /// <summary>
        /// 反向输出
        /// </summary>
        public bool outputInverted { get; set; }

        #endregion

        #region 频带电压输出参数

        /// <summary>
        /// 信号频率
        /// </summary>
        public int signalFrequency { get; set; }

        /// <summary>
        /// 载波频率1
        /// </summary>
        public int carrierFrequency1 { get; set; }

        /// <summary>
        /// 幅度1
        /// </summary>
        public double range1 { get; set; }

        /// <summary>
        /// 基准1
        /// </summary>
        public double benchmark1 { get; set; }

        /// <summary>
        /// 相位1
        /// </summary>
        public double phase1 { get; set; }

        /// <summary>
        /// 载波频率2
        /// </summary>
        public int carrierFrequency2 { get; set; }

        /// <summary>
        /// 幅度2
        /// </summary>
        public double range2 { get; set; }

        /// <summary>
        /// 基准2
        /// </summary>
        public double benchmark2 { get; set; }

        /// <summary>
        /// 相位2
        /// </summary>
        public double phase2 { get; set; }

        /// <summary>
        /// 占空比
        /// </summary>
        public double dutyCycle { get; set; }

        /// <summary>
        /// 信号类型
        /// </summary>
        public int signalType_modulate { get; set; } = 1;

        /// <summary>
        /// 手动输入的0101
        /// </summary>

        public string signalsequence { get; set; }

        #endregion

        #region 数据采集

        /// <summary>
        /// 采集卡类型
        /// </summary>
        public CollectionCardTypeEnum collectionCardType { get; set; }

        /// <summary>
        /// 采样率
        /// </summary>
        public int rate2 { get; set; }

        /// <summary>
        /// 采集时长
        /// </summary>
        public double collectionDuration4 { get; set; }

        /// <summary>
        /// 最小值
        /// </summary>
        public double minimumValue2 { get; set; }

        /// <summary>
        /// 最大值
        /// </summary>
        public double maximumValue2 { get; set; }

        /// <summary>
        /// 采集通道1
        /// </summary>
        public string physicalChannelName_1 { get; set; }

        /// <summary>
        /// 是否启用1
        /// </summary>
        public bool IsStartCollection1 { get; set; }

        /// <summary>
        /// 采集通道2
        /// </summary>
        public string physicalChannelName_2 { get; set; }

        /// <summary>
        /// 是否启用2
        /// </summary>
        public bool IsStartCollection2 { get; set; }

        /// <summary>
        /// 采集通道3
        /// </summary>
        public string physicalChannelName_3 { get; set; }

        /// <summary>
        /// 是否启用3
        /// </summary>
        public bool IsStartCollection3 { get; set; }

        /// <summary>
        /// 采集通道4
        /// </summary>
        public string physicalChannelName_4 { get; set; }

        /// <summary>
        /// 是否启用4
        /// </summary>
        public bool IsStartCollection4 { get; set; }

        #endregion

       
    }
}
